package com.hhh.petadopt.serviceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hhh.petadopt.mapper.AdminLoginMapper;
/**
 * 管理员登录
 */
import com.hhh.petadopt.pojo.Admin;
import com.hhh.petadopt.service.adminLoginService;
/**
 * 
 * 登录管理
 * @author 杜镇声声
 *
 */
@Service
public class adminLoginServiceImpl implements adminLoginService {
	
	@Autowired
	private AdminLoginMapper adminloginMapper;

	@Override
	public Admin Login(Admin admin) {
		Admin ad = adminloginMapper.adminLogin(admin);
		return ad;
	}

	@Override
	public Integer adminCheck(Admin admin) {
		Integer adminCheck = adminloginMapper.adminCheck(admin);
		return adminCheck;
	}

	
}
